package com.xxh.dasongapp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxh.dasongapp.common.entity.Role;
import com.xxh.dasongapp.common.entity.User;
import com.xxh.dasongapp.mapper.RoleMapper;
import com.xxh.dasongapp.mapper.UserMapper;
import com.xxh.dasongapp.service.RoleService;
import com.xxh.dasongapp.service.UserService;
import org.springframework.stereotype.Service;


@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {


    @Override
    public Role getByRoleId(Integer roleId) {
        return lambdaQuery().eq(Role::getId,roleId)
                .one();
    }
}
